<template>
  <!--keep-alive 隐藏组件时不会将组件销毁，组件依然挂载着 -->
  <keep-alive :include="['Home', 'Login']">
    <!-- router-view是占位组件,用来存放路由组件  -->
    <router-view></router-view>
  </keep-alive>
</template>

<script>
export default {
  name: "App",
  mounted() {
    // console.log(this);
  },
};
</script>

<style>
</style>